package com.jade.zsy.crm.entity;

import com.jade.bss.db.IdEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 会员充值
 * User: JinYa 2009_jinya@163.com
 * Date: 2016-4-25
 * Time: 15:07
 * Version : 1.0
 * Remark:
 * History:
 */
@Entity
@Table(name = "STORE_CRM_RECHARGE")
public class Recharge extends IdEntity {
    /**
     * 类型
     */
    public static int TYPE_INPUT=0;//收入
    public static int TYPE_OUTPUT=7;//支出
    @Column(name = "type", updatable = false)
    private int type=TYPE_INPUT;
    @Column(name = "title", updatable = false)
    private String title;
     /**
     * 关联金额
     */
    @Column(name = "amount", nullable = true, updatable = true, length = 100)
    private float amount=0;
    /**
     * 赠送金额
     */
    @Column(name = "giftAmount", nullable = true, updatable = true, length = 100)
    private float giftAmount=0;
    /**
     * 赠送积分
     */
    @Column(name = "giftIntegral", nullable = true, updatable = true, length = 100)
    private float giftIntegral=0;
    /**
     * 会员编号
     */
    @Column(name = "crm_id", nullable = false, updatable = false)
    private long crmId=0;
    @Column(name = "crm_code", updatable = false)
    private String crmCode;
    /**
     * 活动编号
     */
    @Column(name = "actId", nullable = false, updatable = false)
    private long actId=0;
    @Transient
    private RechargeActivity rechargeActivity;
    @Transient
    private CrmInfo crm;
    /**
     * 店铺编号
     */
    @Column(name = "store_id", nullable = false, updatable = true, length = 100)
    private long storeId;
    @Column(name = "storeName", nullable = true, updatable = true, length = 100)
    private  String storeName;
    /**
     * 导购编号
     */
    @Column(name = "employee_id", nullable = false, updatable = true, length = 100)
    private long employeeID;
    @Column(name = "employeeName", nullable = true, updatable = true, length = 100)
    private  String employeeName;
    /**
     * 交易流水号
     */
    @Column(name = "pay_no", nullable = false, updatable = false, length = 100)
    private String payNo;
    /**
     * 状态
     */
    public static int STATUS_ADD=0;//待付款
    public static  int STATUS_FAU=7;//充值成功
    public static  int STATUS_SUC=9;//充值成功
    @Column(name = "status", nullable = false, updatable = false, length = 100)
    private int status=STATUS_ADD;
    /**
     * 备注
     */
    @Column(name = "remark", nullable = true, updatable = false, length = 100)
    private String remark;

    public long getActId() {
        return actId;
    }

    public void setActId(long actId) {
        this.actId = actId;
    }

    public RechargeActivity getRechargeActivity() {
        return rechargeActivity;
    }

    public void setRechargeActivity(RechargeActivity rechargeActivity) {
        this.rechargeActivity = rechargeActivity;
    }

    public float getAmount() {
        return amount;
    }

    public void setAmount(float amount) {
        this.amount = amount;
    }

    public float getGiftAmount() {
        return giftAmount;
    }

    public long getCrmId() {
        return crmId;
    }

    public void setCrmId(long crmId) {
        this.crmId = crmId;
    }

    public String getCrmCode() {
        return crmCode;
    }

    public void setCrmCode(String crmCode) {
        this.crmCode = crmCode;
    }

    public CrmInfo getCrm() {
        return crm;
    }

    public void setCrm(CrmInfo crm) {
        this.crm = crm;
    }

    public long getEmployeeID() {
        return employeeID;
    }

    public void setEmployeeID(long employeeID) {
        this.employeeID = employeeID;
    }

    public String getPayNo() {
        return payNo;
    }

    public void setPayNo(String payNo) {
        this.payNo = payNo;
    }

    public long getStoreId() {
        return storeId;
    }

    public void setStoreId(long storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public float getGiftIntegral() {
        return giftIntegral;
    }

    public void setGiftIntegral(float giftIntegral) {
        this.giftIntegral = giftIntegral;
    }

    public void setGiftAmount(float giftAmount) {
        this.giftAmount = giftAmount;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }
}
